<?php
if($this->mod=='uio'){ $mdtitle = 'User'; }
$mdtitle = empty($mdtitle) ? @$_groups[$this->mod]['title'] : $mdtitle;
if(empty($sbtitle)){
    if($this->type=='detail'){
        $sbtitle = $mdtitle."详情";
    }elseif($this->type=='mtype'){
        $sbtitle = vopCell::cOpt($this->key,$this->mod);
    }else{
        $sbtitle = $mdtitle;
    }
}
?>

<div class="divOuter header">

  <div class="dropdown pull-right">
    <button class="btn btn-info dropdown-toggle bg-primary" type="button" id="nav_mdoc1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
      <span class="fa fa-th-list"></span>
    </button>
    <ul class="dropdown-menu" aria-labelledby="nav_mdoc1">
        <li><a href="{surl(umc:0)}"><i class='fa fa-flag'></i> {lang(user.pub_cuser)}</a></li>
        <li><a href="{surl(umc:order)}"><i class='fa fa-flag'></i> {lang(user.pub_order)}</a></li>
        <!--li><a href="{surl(indoc)}">{lang(user.pub_idoc)}</a></li-->
        <li><a href="{surl(chn:faqs)}"><i class='fa fa-flag'></i> {lang(user.pub_faqs)}</a></li>
        <li role="separator" class="divider"></li>
        {if $user->userFlag=='Login' }
        <li><a href="{surl(umc:0)}?uio-logout"><i class='fa fa-user'></i> {lang(user.lon_logout)}</a></li>
        {else}
        <li><a href="{surl(umc:login)}"><i class='fa fa-user'></i> {lang(user.nv2_login)}</a></li>
        <li><a href="{surl(umc:reg)}"><i class='fa fa-user'></i> {lang(user.nv2_reg)}</a></li>
        {/if}
        <li role="separator" class="divider"></li>
        <?php echo basLang::links("<li><a href='{url}' title='{title}'><i class='fa fa-random'></i> {title}</a></li>"); ?>
        <li><a href="{=PATH_PROJ}/" target="_blank"><i class='fa fa-home'></i> {lang(user.lon_allhome)}</a>
        </li>
    </ul>
  </div>

    <div class="dropdown pull-left">
      <button class="btn btn-info dropdown-toggle" type="button" id="nav_msub2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
        {=$mdtitle}
        <span class="fa fa-import"></span>
      </button>
      <ul class="dropdown-menu" aria-labelledby="nav_msub2">
            <?php if(in_array($this->key,array('apply','login','getpw'))){ ?>
            {if $user->userFlag=='Login' }
            <li><a href="?uio-logout">{lang(user.lon_logout)}</a></li>
            {else}
            <li><a href="{surl(login)}">{lang(user.nv2_login)}</a></li>
            <li><a href="{surl(reg)}">{lang(user.lon_reg)}</a></li>
            <li><a href="{surl(uio-getpw)}">{=$karr['getpw']}</a></li>
            {/if}
            <?php }elseif($this->mod=='user'){ ?>
            <li><a href="{surl($this->mod)}">{lang(user.pub_accinfo)}</a></li>
            <li><a href="#{surl($this->mod."-uedit")}" disabled="disabled" class="cCCC">{lang(user.pub_einfo)}</a></li>
            <li><a href="#{surl(uio-wdtpw)}" disabled="disabled" class="cCCC">{lang(user.pub_epass)}</a></li>
            <li><a href="#{surl($this->mod."-mbind")}" disabled="disabled" class="cCCC">{lang(user.pub_bind)}</a></li>
            <?php } ?>
            <?php if($this->mod=='order'){ ?>
            <li><a href="{surl($this->mod)}">{lang(user.pub_hisord)}</a></li>
            <li><a href="{surl($this->mod."-nodone")}">{lang(user.pub_noend)}</a></li>
            <li><a href="{surl($this->mod."-isdone")}">{lang(user.pub_isend)}</a></li>
            <li><a href="{surl($this->mod."-inquiry")}">{lang(user.pub_qorder)}</a></li>
            <?php } ?>
            <?php if(in_array($this->mod,array('indoc','faqs'))){ ?>
            <li><a href="{surl($this->mod)}--list">{lang(flow.qa_alltype)}</a></li>
            {tag:tp=[Type,u][modid,$this->mod][idfix,top]}
            <li><a href="{surl($this->mod."-$t_kid")}">{title($t_title,32,$u)}</a></li>
            {/tag:tp}
            {if $this->mod=='faqs' }<li><a href="{surl($this->mod)}-tag">{lang(flow.qa_alltag)}</a></li>{/if}
            <?php } ?>
      </ul>
    </div>

</div>

<div class="clear"></div>

<div class="divOuter clearfix">
